package com.bagus.mediapipefacedetection.quality;


import com.bagus.mediapipefacedetection.camera.CameraFactory;

public class DetectQualityThreshold {
    float faceConfidence = 0.85f;
    float faceOffsetLeft = 0.1f;
    float faceOffsetTop = 0.1f;
    float faceOffsetRight = 0.1f;
    float faceOffsetBottom = 0.9f;
    float faceMinSizeRatio = 0.5f;         ///脸占画面宽度的最小比率
    float faceMaxSizeRatio = 0.8f;         ///脸占画面宽度的最大比率
    float faceCenterRectX = 0.5f;           ///中心点x
    float faceCenterRectY = 0.5f;           ///中心点y
    float faceOffsetPitch = 0.5f;
    float faceOffsetYaw = 0.5f;
    float faceOffsetRoll = 0.5f;
    float faceImageCutDownOffset = 0.2f;
    boolean needJudgeCoverMouth = false;
    boolean needJudgeCoverEye = false;
    boolean needJudgeBlockEye = false;
    int needHolding = 10;                   ///连续帧数
    int pictureWidth = 1920;                //拍照图片宽度
    int pictureHeight = 1080;               //拍照图片高度

    public int getPictureWidth() {
        return pictureWidth;
    }

    public void setPictureWidth(int pictureWidth) {
        this.pictureWidth = pictureWidth;
        CameraFactory.mPictureWidth = pictureWidth;
    }

    public int getPictureHeight() {
        return pictureHeight;
    }

    public void setPictureHeight(int pictureHeight) {
        this.pictureHeight = pictureHeight;
        CameraFactory.mPictureHeight = pictureHeight;
    }

    public float getFaceMinSizeRatio() {
        return faceMinSizeRatio;
    }

    public void setFaceMinSizeRatio(float faceMinSizeRatio) {
        this.faceMinSizeRatio = faceMinSizeRatio;
    }

    public float getFaceMaxSizeRatio() {
        return faceMaxSizeRatio;
    }

    public void setFaceMaxSizeRatio(float faceMaxSizeRatio) {
        this.faceMaxSizeRatio = faceMaxSizeRatio;
    }

    public float getFaceCenterRectX() {
        return faceCenterRectX;
    }

    public void setFaceCenterRectX(float faceCenterRectX) {
        this.faceCenterRectX = faceCenterRectX;
    }

    public float getFaceCenterRectY() {
        return faceCenterRectY;
    }

    public void setFaceCenterRectY(float faceCenterRectY) {
        this.faceCenterRectY = faceCenterRectY;
    }

    public int getNeedHolding() {
        return needHolding;
    }

    public void setNeedHolding(int need_holding) {
        this.needHolding = need_holding;
    }

    public float getFaceConfidence() {
        return faceConfidence;
    }

    public void setFaceConfidence(float faceConfidence) {
        this.faceConfidence = faceConfidence;
    }

    public float getFaceOffsetLeft() {
        return faceOffsetLeft;
    }

    public void setFaceOffsetLeft(float faceOffsetLeft) {
        this.faceOffsetLeft = faceOffsetLeft;
    }

    public float getFaceOffsetTop() {
        return faceOffsetTop;
    }

    public void setFaceOffsetTop(float faceOffsetTop) {
        this.faceOffsetTop = faceOffsetTop;
    }

    public float getFaceOffsetRight() {
        return faceOffsetRight;
    }

    public void setFaceOffsetRight(float faceOffsetRight) {
        this.faceOffsetRight = faceOffsetRight;
    }

    public float getFaceOffsetBottom() {
        return faceOffsetBottom;
    }

    public void setFaceOffsetBottom(float faceOffsetBottom) {
        this.faceOffsetBottom = faceOffsetBottom;
    }

    public float getFaceOffsetPitch() {
        return faceOffsetPitch;
    }

    public void setFaceOffsetPitch(float faceOffsetPitch) {
        this.faceOffsetPitch = faceOffsetPitch;
    }

    public float getFaceOffsetYaw() {
        return faceOffsetYaw;
    }

    public void setFaceOffsetYaw(float faceOffsetYaw) {
        this.faceOffsetYaw = faceOffsetYaw;
    }

    public float getFaceOffsetRoll() {
        return faceOffsetRoll;
    }

    public void setFaceOffsetRoll(float faceOffsetRoll) {
        this.faceOffsetRoll = faceOffsetRoll;
    }

    public float getFaceImageCutDownOffset() {
        return faceImageCutDownOffset;
    }

    public void setFaceImageCutDownOffset(float faceImageCutDownOffset) {
        this.faceImageCutDownOffset = faceImageCutDownOffset;
    }

    public boolean isNeedJudgeCoverMouth() {
        return needJudgeCoverMouth;
    }

    public void setNeedJudgeCoverMouth(boolean needJudgeCoverMouth) {
        this.needJudgeCoverMouth = needJudgeCoverMouth;
    }

    public boolean isNeedJudgeCoverEye() {
        return needJudgeCoverEye;
    }

    public void setNeedJudgeCoverEye(boolean needJudgeCoverEye) {
        this.needJudgeCoverEye = needJudgeCoverEye;
    }

    public boolean isNeedJudgeBlockEye() {
        return needJudgeBlockEye;
    }

    public void setNeedJudgeBlockEye(boolean needJudgeBlockEye) {
        this.needJudgeBlockEye = needJudgeBlockEye;
    }
}
